package com.sanpu.kxe.business.trade.contract;

import android.graphics.Bitmap;

import com.sanpu.kxe.base.IBaseExtraView;
import com.sanpu.kxe.base.IBasePresenter;
import com.sanpu.kxe.business.trade.bean.PayOrderOutput;
import com.sanpu.kxe.jump.shareutil.share.SharePlatform;

/**
 * Description：付款二维码等待扫码页面(扫码收款)
 * Created by 薛勇军 on 2019/3/20.
 */

public interface PaymentQRcodeContract {

    interface View extends IBaseExtraView<Presenter> {

        /**
         * 显示view
         */
        void showDataView(PayOrderOutput orderOutput);
    }

    interface Presenter extends IBasePresenter {

        /**
         * 下单
         */
        void payOrder(String amount, String appCnlConfId, String vipOpenId);

        /**
         * 查询结果
         */
        void getTranPayStatus();

        /**
         * 保存图片
         */
        void saveImage(Bitmap mClipScreen, String payValue);

        /**
         * 分享图片
         */
        void shareImage(Bitmap mClipScreen, final @SharePlatform.Platform int module);
    }
}
